import request from '@/utils/request'

export function fetchLogisOrderList(query) {
  return request({
    url: '/logisOrder/getList.json',
    method: 'get',
    params: query || {}
  })
}

export function fetchLogisOrder(query) {
  return request({
    url: '/logisOrder/getByCode.json',
    method: 'get',
    params: query || {}
  })
}

export function logisOrderReceive(code, cnt) {
  return request({
    url: '/logisOrder/receive.json',
    method: 'post',
    data: {
      logisCode: code,
      bagCnt: cnt
    }
  })
}
